.class Lcom/estrongs/android/ui/dialog/j$e;
.super Landroid/widget/BaseAdapter;
.source "AssociateAppDialog.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/estrongs/android/ui/dialog/j;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = "e"
.end annotation


# instance fields
.field a:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/estrongs/android/ui/dialog/j$f;",
            ">;"
        }
    .end annotation
.end field

.field b:I

.field c:I

.field d:I

.field e:I

.field final synthetic f:Lcom/estrongs/android/ui/dialog/j;


# direct methods
.method constructor <init>(Lcom/estrongs/android/ui/dialog/j;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/j$e;->f:Lcom/estrongs/android/ui/dialog/j;

    invoke-direct {p0}, Landroid/widget/BaseAdapter;-><init>()V

    const/4 p1, 0x0

    .line 2
    iput p1, p0, Lcom/estrongs/android/ui/dialog/j$e;->b:I

    .line 3
    iput p1, p0, Lcom/estrongs/android/ui/dialog/j$e;->c:I

    const/4 p1, -0x1

    .line 4
    iput p1, p0, Lcom/estrongs/android/ui/dialog/j$e;->d:I

    .line 5
    iput p1, p0, Lcom/estrongs/android/ui/dialog/j$e;->e:I

    return-void
.end method


# virtual methods
.method protected a()Ljava/lang/String;
    .locals 2

    .line 12
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/j$e;->a:Ljava/util/List;

    iget v1, p0, Lcom/estrongs/android/ui/dialog/j$e;->b:I

    invoke-interface {v0, v1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/ui/dialog/j$f;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    return-object v0

    .line 13
    :cond_0
    iget-object v0, v0, Lcom/estrongs/android/ui/dialog/j$f;->b:Ljava/lang/String;

    return-object v0
.end method

.method protected a(I)V
    .locals 0

    .line 10
    iput p1, p0, Lcom/estrongs/android/ui/dialog/j$e;->b:I

    .line 11
    invoke-virtual {p0}, Landroid/widget/BaseAdapter;->notifyDataSetChanged()V

    return-void
.end method

.method protected a(Ljava/util/List;III)V
    .locals 0
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/estrongs/android/ui/dialog/j$f;",
            ">;III)V"
        }
    .end annotation

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/ui/dialog/j$e;->a:Ljava/util/List;

    .line 2
    iput p2, p0, Lcom/estrongs/android/ui/dialog/j$e;->d:I

    .line 3
    iput p3, p0, Lcom/estrongs/android/ui/dialog/j$e;->e:I

    .line 4
    iput p4, p0, Lcom/estrongs/android/ui/dialog/j$e;->b:I

    .line 5
    iput p4, p0, Lcom/estrongs/android/ui/dialog/j$e;->c:I

    .line 6
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object p1

    invoke-virtual {p1}, Lcom/estrongs/android/pop/l;->f1()Z

    move-result p1

    if-eqz p1, :cond_1

    .line 7
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/j$e;->f:Lcom/estrongs/android/ui/dialog/j;

    iget-object p1, p1, Lcom/estrongs/android/ui/dialog/j;->e:Landroid/widget/CheckBox;

    if-eqz p4, :cond_0

    const/4 p2, 0x1

    goto :goto_0

    :cond_0
    const/4 p2, 0x0

    :goto_0
    invoke-virtual {p1, p2}, Landroid/widget/CheckBox;->setEnabled(Z)V

    .line 8
    :cond_1
    iget-object p1, p0, Lcom/estrongs/android/ui/dialog/j$e;->f:Lcom/estrongs/android/ui/dialog/j;

    invoke-virtual {p1, p4}, Lcom/estrongs/android/ui/dialog/j;->a(I)V

    .line 9
    invoke-virtual {p0}, Landroid/widget/BaseAdapter;->notifyDataSetChanged()V

    return-void
.end method

.method protected b()Z
    .locals 2

    .line 1
    iget v0, p0, Lcom/estrongs/android/ui/dialog/j$e;->c:I

    iget v1, p0, Lcom/estrongs/android/ui/dialog/j$e;->b:I

    if-eq v0, v1, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public getCount()I
    .locals 1

    .line 1
    iget-object v0, p0, Lcom/estrongs/android/ui/dialog/j$e;->a:Ljava/util/List;

    if-nez v0, :cond_0

    const/4 v0, 0x0

    goto :goto_0

    :cond_0
    invoke-interface {v0}, Ljava/util/List;->size()I

    move-result v0

    :goto_0
    return v0
.end method

.method public getItem(I)Ljava/lang/Object;
    .locals 0

    const/4 p1, 0x0

    return-object p1
.end method

.method public getItemId(I)J
    .locals 2

    const-wide/16 v0, 0x0

    return-wide v0
.end method

.method public getItemViewType(I)I
    .locals 1

    .line 1
    iget v0, p0, Lcom/estrongs/android/ui/dialog/j$e;->d:I

    if-ne p1, v0, :cond_0

    const/4 p1, 0x1

    return p1

    :cond_0
    const/4 p1, 0x0

    return p1
.end method

.method public getView(ILandroid/view/View;Landroid/view/ViewGroup;)Landroid/view/View;
    .locals 5

    if-nez p2, :cond_1

    .line 1
    iget p2, p0, Lcom/estrongs/android/ui/dialog/j$e;->d:I

    const/4 p3, 0x0

    if-ne p1, p2, :cond_0

    .line 2
    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/j$e;->f:Lcom/estrongs/android/ui/dialog/j;

    iget-object p2, p2, Lcom/estrongs/android/ui/dialog/j;->d:Landroid/content/Context;

    invoke-static {p2}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p2

    const v0, 0x7f0c006e

    invoke-virtual {p2, v0, p3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    goto :goto_0

    .line 3
    :cond_0
    iget-object p2, p0, Lcom/estrongs/android/ui/dialog/j$e;->f:Lcom/estrongs/android/ui/dialog/j;

    iget-object p2, p2, Lcom/estrongs/android/ui/dialog/j;->d:Landroid/content/Context;

    invoke-static {p2}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p2

    const v0, 0x7f0c006d

    invoke-virtual {p2, v0, p3}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p2

    .line 4
    :goto_0
    new-instance v0, Lcom/estrongs/android/ui/dialog/j$g;

    invoke-direct {v0, p3}, Lcom/estrongs/android/ui/dialog/j$g;-><init>(Lcom/estrongs/android/ui/dialog/j$a;)V

    const p3, 0x7f09052a

    .line 5
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/ImageView;

    iput-object p3, v0, Lcom/estrongs/android/ui/dialog/j$g;->a:Landroid/widget/ImageView;

    const p3, 0x7f090b57

    .line 6
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/TextView;

    iput-object p3, v0, Lcom/estrongs/android/ui/dialog/j$g;->b:Landroid/widget/TextView;

    .line 7
    invoke-static {}, Lcom/estrongs/android/ui/theme/b;->r()Lcom/estrongs/android/ui/theme/b;

    move-result-object v1

    const v2, 0x7f060294

    invoke-virtual {v1, v2}, Lcom/estrongs/android/ui/theme/b;->a(I)I

    move-result v1

    invoke-virtual {p3, v1}, Landroid/widget/TextView;->setTextColor(I)V

    const p3, 0x7f09052b

    .line 8
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/ImageView;

    iput-object p3, v0, Lcom/estrongs/android/ui/dialog/j$g;->d:Landroid/widget/ImageView;

    const p3, 0x7f090b58

    .line 9
    invoke-virtual {p2, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/TextView;

    iput-object p3, v0, Lcom/estrongs/android/ui/dialog/j$g;->c:Landroid/widget/TextView;

    .line 10
    new-instance p3, Landroid/widget/AbsListView$LayoutParams;

    const/4 v1, -0x1

    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/j$e;->f:Lcom/estrongs/android/ui/dialog/j;

    iget-object v2, v2, Lcom/estrongs/android/ui/dialog/j;->d:Landroid/content/Context;

    const/high16 v3, 0x42480000    # 50.0f

    invoke-static {v2, v3}, Les/fy;->a(Landroid/content/Context;F)I

    move-result v2

    invoke-direct {p3, v1, v2}, Landroid/widget/AbsListView$LayoutParams;-><init>(II)V

    invoke-virtual {p2, p3}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 11
    invoke-virtual {p2, v0}, Landroid/view/View;->setTag(Ljava/lang/Object;)V

    goto :goto_1

    .line 12
    :cond_1
    invoke-virtual {p2}, Landroid/view/View;->getTag()Ljava/lang/Object;

    move-result-object p3

    move-object v0, p3

    check-cast v0, Lcom/estrongs/android/ui/dialog/j$g;

    .line 13
    :goto_1
    iget-object p3, p0, Lcom/estrongs/android/ui/dialog/j$e;->a:Ljava/util/List;

    invoke-interface {p3, p1}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p3

    check-cast p3, Lcom/estrongs/android/ui/dialog/j$f;

    if-nez p3, :cond_2

    .line 14
    iget-object p3, v0, Lcom/estrongs/android/ui/dialog/j$g;->a:Landroid/widget/ImageView;

    const/16 v1, 0x8

    invoke-virtual {p3, v1}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 15
    iget-object p3, v0, Lcom/estrongs/android/ui/dialog/j$g;->b:Landroid/widget/TextView;

    const v1, 0x7f110728

    invoke-virtual {p3, v1}, Landroid/widget/TextView;->setText(I)V

    goto :goto_3

    .line 16
    :cond_2
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/j$e;->f:Lcom/estrongs/android/ui/dialog/j;

    invoke-static {v1}, Lcom/estrongs/android/ui/dialog/j;->a(Lcom/estrongs/android/ui/dialog/j;)Ljava/util/HashMap;

    move-result-object v1

    iget-object v2, p3, Lcom/estrongs/android/ui/dialog/j$f;->b:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/graphics/drawable/Drawable;

    if-nez v1, :cond_3

    .line 17
    :try_start_0
    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/j$e;->f:Lcom/estrongs/android/ui/dialog/j;

    iget-object v2, v2, Lcom/estrongs/android/ui/dialog/j;->c:Landroid/content/pm/PackageManager;

    iget-object v3, p3, Lcom/estrongs/android/ui/dialog/j$f;->b:Ljava/lang/String;

    invoke-virtual {v2, v3}, Landroid/content/pm/PackageManager;->getApplicationIcon(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v1

    .line 18
    iget-object v2, p0, Lcom/estrongs/android/ui/dialog/j$e;->f:Lcom/estrongs/android/ui/dialog/j;

    invoke-static {v2}, Lcom/estrongs/android/ui/dialog/j;->a(Lcom/estrongs/android/ui/dialog/j;)Ljava/util/HashMap;

    move-result-object v2

    iget-object v3, p3, Lcom/estrongs/android/ui/dialog/j$f;->b:Ljava/lang/String;

    invoke-virtual {v2, v3, v1}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Landroid/content/pm/PackageManager$NameNotFoundException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2

    :catch_0
    nop

    .line 19
    :cond_3
    :goto_2
    iget-object v2, v0, Lcom/estrongs/android/ui/dialog/j$g;->a:Landroid/widget/ImageView;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    .line 20
    iget-object v2, v0, Lcom/estrongs/android/ui/dialog/j$g;->a:Landroid/widget/ImageView;

    invoke-virtual {v2, v1}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 21
    iget-object v1, v0, Lcom/estrongs/android/ui/dialog/j$g;->b:Landroid/widget/TextView;

    iget-object p3, p3, Lcom/estrongs/android/ui/dialog/j$f;->a:Ljava/lang/String;

    invoke-virtual {v1, p3}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 22
    iget p3, p0, Lcom/estrongs/android/ui/dialog/j$e;->d:I

    if-ne p1, p3, :cond_4

    .line 23
    iget-object p3, v0, Lcom/estrongs/android/ui/dialog/j$g;->c:Landroid/widget/TextView;

    if-eqz p3, :cond_4

    .line 24
    iget-object v1, p0, Lcom/estrongs/android/ui/dialog/j$e;->f:Lcom/estrongs/android/ui/dialog/j;

    iget-object v1, v1, Lcom/estrongs/android/ui/dialog/j;->d:Landroid/content/Context;

    const v2, 0x7f11092c

    invoke-virtual {v1, v2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    new-array v2, v2, [Ljava/lang/Object;

    iget v4, p0, Lcom/estrongs/android/ui/dialog/j$e;->e:I

    invoke-static {v4}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v4

    aput-object v4, v2, v3

    invoke-static {v1, v2}, Ljava/text/MessageFormat;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p3, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 25
    :cond_4
    :goto_3
    iget-object p3, v0, Lcom/estrongs/android/ui/dialog/j$g;->d:Landroid/widget/ImageView;

    iget v0, p0, Lcom/estrongs/android/ui/dialog/j$e;->b:I

    if-ne v0, p1, :cond_5

    const p1, 0x7f080817

    goto :goto_4

    :cond_5
    const p1, 0x7f080819

    :goto_4
    invoke-virtual {p3, p1}, Landroid/widget/ImageView;->setImageResource(I)V

    return-object p2
.end method

.method public getViewTypeCount()I
    .locals 1

    const/4 v0, 0x2

    return v0
.end method
